package cn.lingyangwl.agile.infra.datamanage.assembly;

import cn.lingyangwl.agile.infra.datamanage.db.GeneratorConfig;
import cn.lingyangwl.agile.infra.datamanage.mode.entity.DatasourceConfig;
import cn.lingyangwl.agile.infra.datamanage.mode.rqrs.DatasourceResp;
import org.mapstruct.Mapper;

/**
 * @author shenguangyang
 */
@Mapper(componentModel = "spring")
public interface DatasourceConfigAssembly {
    DatasourceResp toResp(DatasourceConfig source);
    GeneratorConfig toEntity(DatasourceConfig source);
}
